package com.jukte.recipe.utils;

import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;



public class Constants 
{	
	final static public String addUnitId="a151918e9bea7c8";
	
	final static public int THUMBNAIL_IMAGE_WIDTH=200;
	final static public int THUMBNAIL_IMAGE_HEIGHT=200;
	final static public int FULL_IMAGE_WIDTH=400;
	final static public int FULL_IMAGE_HEIGHT=400;
	
	final static public String RECIEPE_TAB_TAG="RECIPE_TAB";
	final static public String ABOUT_TAB_TAG="ABOUT_TAB";
	final static public String SHARE_TAB_TAG="SHARE_TAB";
	final static public String FAVORITES_TAB_TAG="FAVORITE_TAB";
	
//	public static String WS_PATH = "http://192.168.130.1:81/quinoa/webservices/";
	public static String WS_PATH = "http://tahminaghani.com/quinoa/webservices/";
	
	public static boolean isNetworkConnected(Context context) {
		ConnectivityManager cm = (ConnectivityManager) context
				.getSystemService(Context.CONNECTIVITY_SERVICE);
		NetworkInfo ni = cm.getActiveNetworkInfo();
		if (ni != null && ni.isConnected()) {
			return true;
		}
		return false;
	}
}
